//
//  AboutWeViewController.m
//  一点互助
//
//  Created by 张泊秋 on 16/8/24.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "AboutWeViewController.h"
#import "ResponseManager.h"
#import <Masonry/Masonry.h>


@interface AboutWeViewController () {
    UILabel *lable;
}

@end

@implementation AboutWeViewController




- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpView];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"关于";
    [self setupBackItem];
}

- (void)setUpView {
    
    lable = [[UILabel alloc]init];
    [self.view addSubview:lable];

    [lable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(84);
        make.left.mas_equalTo(10);
        make.right.mas_equalTo(-5);
        
    }];
    lable.numberOfLines = 0;
    
    
    
    
}

- (void)viewWillAppear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = YES;
    [ResponseManager startGetRequestWithURLString:kAboutWe parameters:nil completionHandler:^(FBResponse *response) {
        if (response.success) {
            lable.text = response.resultValue[@"content"];
        }
        
    }];
}
- (void)viewWillDisappear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = NO;
}




@end
